package constant.milk.aptprice.apt;

import java.util.HashMap;

import constant.milk.aptprice.database.DbAdapter;
import constant.milk.aptprice.database.DbInsertQuery;
import android.content.Context;

public class BusanSetting
{
	private DbInsertQuery insertQuery;
	
	public BusanSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("강서구",	"292",	"197");
		setData("사하구",	"194",	"137");
		setData("사상구",	"219",	"162");
		setData("서구",	"250",	"178");
		setData("동구",	"239",	"163");
		setData("중구",	"208",	"147");
		setData("북구",	"242",	"178");
		setData("영도구",	"190",	"130");
		setData("부산진구",	"245",	"175");
		setData("금정구",	"256",	"185");
		setData("동래구",	"257",	"180");
		setData("연제구",	"270",	"192");
		setData("수영구",	"287",	"168");
		setData("남구",	"237",	"166");
		setData("해운대구",	"274",	"184");
		setData("기장군",	"235",	"146");

	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "부산광역시");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
